14. Hoisting
Hoisting
Sometimes your JavaScript code will produce errors that may seem counterintuitive at first. Hoisting is another one of those topics that might be the cause of some of these tricky errors you're debugging.
Let's take a look at an example:
Hoisting
Hoisting 1
SOLUTION:
undefined JuliaHoisting 2
SOLUTION:
undefined JuliaHoisting 3